package com.wlyuan.index.api.waybill.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yuanjie
 */
@Data
public class AttachmentDTO implements Serializable {
    @ApiModelProperty("附件类型 1:回单照片,2:附件,3:拒签照片,4:公司开票协议,5:签收照片")
    @NotNull(message = "附件类型不能为空")
    private Integer type;

    @ApiModelProperty("附件url")
    @NotNull(message = "附件url不能为空")
    private String url;

    @ApiModelProperty("文件名")
    @NotNull(message = "文件名不能为空")
    private String name;
}
